package com.example.entity;

import com.example.enums.StatusEnum;
import com.example.serializer.AddFieldJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class User {
    private String id;
    
    @JsonSerialize(using = AddFieldJsonSerializer.class, nullsUsing = AddFieldJsonSerializer.class)
    private StatusEnum status;

    // getter和setter方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public StatusEnum getStatus() {
        return status;
    }

    public void setStatus(StatusEnum status) {
        this.status = status;
    }
}